#ifndef VIDEOPLAY_H
#define VIDEOPLAY_H

#include <QWidget>
#include <QImage>

class QPaintEvent;
class Decoder;

class VideoPlay : public QWidget
{
    Q_OBJECT
public:
    explicit VideoPlay(QWidget *parent = nullptr);
    ~VideoPlay();

    bool openUrl(QString url);
protected:
    void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
signals:

public slots:
    void recvFrame(QImage image);
private:
    Decoder * m_Decoder;
    QImage m_image;
};

#endif // VIDEOPLAY_H
